package com.mall.service.impl;

import com.mall.dao.CarouselDao;
import com.mall.entity.Carousel;
import com.mall.service.CarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("carouselService")
public class CarouselServiceImpl implements CarouselService {

    @Autowired
    private CarouselDao carouselDao;


    @Override
    public List<Carousel> selectAllList() {
        List<Carousel> carousels = carouselDao.selectList(null);
        System.out.println(carousels);
        return carousels;
    }
}
